package com.example.demo.controller;

import com.alibaba.fastjson.JSONObject;
import com.example.demo.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Fa
 * @description TestControll
 * @date 2020/10/21 0021 上午 11:21
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping("/test-dubbo")
    public JSONObject testDubbo(@RequestParam Long merchantId) {
        return testService.testDubbo(merchantId);
    }

}
